package jcataloger.gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;
import java.awt.Rectangle;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import jcataloger.resources.Messages;

/**
 * This frame contains the about information of the project.
 * @author sekobey
 *
 */
public class AboutFrame extends JFrame {

	private static final long serialVersionUID = 1L;

	private JPanel jContentPane = null;

	private JLabel jLabel = null;

	private JLabel jLabel1 = null;

	private JLabel jLabel2 = null;

	private JLabel jLabel3 = null;

	private JLabel jLabel4 = null;

	private JLabel jLabel5 = null;

	/**
	 * This is the default constructor
	 */
	public AboutFrame(JFrame owner) {
		super();
		initialize(owner);
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize(JFrame owner) {
		this.setSize(356, 252);
		this.setContentPane(getJContentPane());
		this.setLocationRelativeTo(owner);
		this.setTitle(Messages.getString("AboutFrame.title")); //$NON-NLS-1$
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabel5 = new JLabel();
			jLabel5.setText(Messages.getString("AboutFrame.4"));
			jLabel5.setSize(new Dimension(298, 27));
			jLabel5.setLocation(new Point(14, 168));
			jLabel4 = new JLabel();
			jLabel4.setBounds(new Rectangle(14, 135, 244, 27));
			jLabel4.setText(Messages.getString("AboutFrame.1")); //$NON-NLS-1$
			jLabel3 = new JLabel();
			jLabel3.setBounds(new Rectangle(14, 105, 244, 27));
			jLabel3.setText(Messages.getString("AboutFrame.2")); //$NON-NLS-1$
			jLabel2 = new JLabel();
			jLabel2.setBounds(new Rectangle(14, 74, 191, 24));
			jLabel2.setText(Messages.getString("AboutFrame.3")); //$NON-NLS-1$
			jLabel1 = new JLabel();
			jLabel1.setBounds(new Rectangle(120, 15, 85, 48));
			jLabel1.setForeground(new Color(130, 25, 25));
			jLabel1.setFont(new Font("Arial", Font.BOLD, 12)); //$NON-NLS-1$
			jLabel1.setText(Messages.getString("AboutFrame.0")); //$NON-NLS-1$
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(15, 14, 101, 50));
			jLabel.setFont(new Font("Arial", Font.BOLD, 18)); //$NON-NLS-1$
			jLabel.setForeground(new Color(130, 25, 15));
			jLabel.setText(Messages.getString("AboutFrame.7")); //$NON-NLS-1$
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(jLabel1, null);
			jContentPane.add(jLabel2, null);
			jContentPane.add(jLabel3, null);
			jContentPane.add(jLabel4, null);
			jContentPane.add(jLabel5, null);
		}
		return jContentPane;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
